package cn.ycc1.springquickstart.util;

/**
 * 静态内部类
 *
 * @author ycc
 * @date 2024/3/24
 */
public class Singleton4 {
    private Singleton4() {}

    private static class SingletonHolder {
        private static final Singleton4 INSTANCE = new Singleton4();
    }

    public static Singleton4 getInstance() {
        return SingletonHolder.INSTANCE;
    }
}

